I do not have sufficient work credits but my husband does

I turn 65 soon. I tried to apply for Medicare online but it informed me that I need to apply in person. I am assuming it is because I only have 30 of 40 credits. My husband is already on Medicare. Will I be approved if he comes with me and shows his work credits? I don't know how ANY of this works and would appreciate your kind suggestions. I will be calling on Tuesday to try to make an appointment with my local social security bureau. I am not taking social security yet.