As you stated, its your diet that determines whether you will be cutting fat or adding muscle.
But yes, for the most part, the compound exercises (squat, bench, deadlift) are the exercises most used for building mass fast. Some folks that are cutting, will use more isolated movements, at much lower weight, but higher reps, for more volume, almost to incorporate a cardio-like workout, but with weights. You can always do compound movements with high reps as well.... Pick one style you like, and stick with that style for minimum 4 weeks. If it starts working, just stick to it, for a long time, 4-6 months plus, until you reach your desired look.