Did you drink coffee your last weeks of being pregnant?

37 weeks pregnant and I’ve been drinking coffee on and off my whole pregnancy. Is it ok to drink it my last weeks of being pregnant?