It all depends how long you stay in the foam and play!
A quick run through the foam will leave your clothes damp, and will quickly dry in the sun. While playing in the cool & refreshing foam, will guarantee that you get wet.
If you have the opportunity to change into a bathing suit, that's a good idea, but even people in clothes, socks, and shoes can get in the foam and have fun!