Just switched phones and now the data isn’t working. Do I need new APN settings?

I just moved my SIM to a new phone and now I can’t access mobile data.
Do I need to enter new APN settings or is something else wrong?