Yep, you guessed it. Certain foods can be more beneficial than others when it comes to building muscle. This may be due to certain carbohydrates having less fibre, meaning you can consume more volume more frequently. It may also be that certain sources of protein have an amino acid profile that lends itself well to building muscle.
Check out this article we put together, which has some interesting food swaps that you may find beneficial.