Super headache

I'm 39 weeks pregnant, is it safe for me to take Ibuprofen? My head has been pounding all day