Yes, you would need to contact Social Security at least 3 months before you turn 65 to check about applying for Medicare.
I also need information about the benefits of relatives, can an ex-wife get benefits?
They could get benefits if the marriage lasted 10 years or more
I have another question for you about Medicare. What happens if I need Medicare but have not enrolled?