You can use parts of it, but I think its needs to be supplemented with the gym if you are trying to gain mass. At least with P90x. You def need to go to the gym for legs using the program, I'd say chest too but you could modify the chest workouts at home if you are creative.
Haven't used insanity that much, but it doesn't seem like a mass building program.