I think you gain muscle from working out period (lifting weights is basically tearing muscle and then letting it repair itself). You will just have muscle under fat if you aren't a lean person. I guess if you're already lean, then you won't need to work on cardio as much. As far as gaining fat as well as muscle from increased food intake, that won't happen if you eat the right foods.