Invalid License Issues on PlayStation Consoles

It works on the ps5 user I used to purchase the game, but does that mean I am unable to play on my main account (different from the user I purchased the game from)?