No. This rule restricts children from using the pool at a certain time while the pool is open. During pool hours children have the right to go swimming at any time. Some apartment complexes restrict access to a hot tub due to the fact that some children may be too young to sit in hot water. A rule of this type may be legal.