Is Afterwards Formal?

Is Afterwards Formal? The meaning of the word afterward is not changed by writing afterwards but the different spelling and pronunciation is preferred in some countries and used in a more formal way in others. The use of afterward is more common in North America while English speakers prefer to say afterwards. Is it correct