As long as the license plan options do not conflict then you will be fine associating both. Review Service plans that cannot be assigned at the same time in the Licensing Service Plan Reference
Traditionally there were many conflicts between options, but increasingly these have been resolved, for example Exchange options could not be stacked/concurrent before 2023 and now can. So errors like this are a thing of the past:
You can’t assign licenses that contain these conflicting services: Exchange Online (Plan 1), Exchange Online (Plan 2). Review the services included with each license, and try again. As far as exchange is concerned if you have both P2 and P1 assigned then you get the P2 benefits.