Does having muscle mass mean a higher metabolism?

Does having muscle mass mean a higher metabolism?
This is me. I only have a little bit of muscle mass, but the reason I'm asking this question is because, well, my diet isn't very strict. I eat whatever I want. Cake , cookies, icecream, pizza, fries, soda etc; and I can never seem to gain much weight. I'm 28 so I'm past the "still growing" stage. But I heard that muscle burns calories. Could that be it? Am I not gaining weight due to having a bit of muscle?
Does having muscle mass mean a higher metabolism?
Post Opinion