Carbohydrates and foods with protein will make you fat, but not if you eat them separately.
A whole protein diet can accelerate fat consumption, because the body needs more energy to digest protein than starch.
However, in the case of normal meals, there is still a risk of getting fat if you eat too much.