No you can stay all day of you want, however, some times during the day they decrease or close the lap lanes for classes or swim meets. It's best to look at the schedule online.
Stay as long as the pool is open for the type of swim you came for is available.
Thanks! Your answer is awaiting moderation.