Yes, the Switch 2 will be backwards compatible with Switch games, with some exceptions. In the past, Nintendo has often included backwards compatibility with its preceding console's library.