Can I take 600mg of ibuprofen for cramps??!

So I ran out of pain med last week and only have prescription ibuprofen of 600mg, and I have really bad cramps....can I take that???! Help!!!!