This depends on the waterfall. For many of the waterfalls that you can drive to, hiking down to the base of the waterfall to swim in is not condoned but you will see that some people will disregard the signs. In most cases, this is to preserve the environment and also in case of flash-flooding. For private waterfalls and ones that you're taken to by a guide, many of those you can swim in.