There is an NBA rule which requires a player to remain in the game for one tick of the clock after entering. However, neither the NFHS nor the NCAA have this provision.
Unfortunately, the know-it-alls who watch the NBA will insist that the same must be true for HS games because that is what they saw on TV.