If the airport is the same as 2020, the profile will work, unless the profile creator has set the profile to be "2020 Only", which is an option in the scenery Details page. It's a fairly recent addition that is used when the two version of the airport are not the same in 2020 and 2024, so the profile is assigned to only one simulator.
But if the option is not used, the profile will work in both simulators. If it's not enabled in the profile you are using, it's possible you might get a conflict from another scenery in 2024, so there extra parking spots in the sim coming from the Navdata API that would cause such issues.