I am prescribed to rake 5mg oxycodone 3 times a day but my pain was really bad so I took 10mg. Will it be okay?

Probably okay. Be sure to inform your doctor about this. Taking more Oxycodone than prescribed can be very dangerous. Unremitting pain is also a concern.
No problems. Recommended dose is 5 to 15 mg orally every 4 to 6 hours for acute pain. However, you always want to work closely with your doctor regarding any medications.