Does having measles as a child protect you as an adult?

Yes. Immunity from measles following natural infection is considered life-long, barring any underlying immune disorder. Of course, there are always exceptions to this, although uncommon. Your doctor should be able to send a blood test to check your antibody titers against measles to help you determine if you are still at risk.