Backup and Restore across versions

I did a backup of a database using pg_basebackup. I need to restore it to another server. The database version in the source server is 9.2.23. The destination server postgresql version is 12. Will there be any problems if I restore from the 9.2.23 to 12?

Cheers, Aigini