Yes, it's fine to use the chat room while you are battling. Often other people are interested in the battles - I usually post a commentary so others know what's going on.
(Funny, I only realised after using wifi battles 10 times that you could talk to people, I always had the volume right down so didn't know).