Thank you for your post and welcome to our community.
It depends on the handset, if the O2 sim card is the same size as the SIM you were using previously it should be fine.
please let us know you get on 🙂
Vikki - Forum Team
New around here? To find out more about the Community check out our Getting Started guide