Worried

Did I have to get it at 28 weeks? Will my baby be fine if I get it a little after? I kind of don't have a choice.