You can water change during medication. However you will dilute the meds so you may need to bring the level back up.
If you are treating ich ... the treatment above may not work as you expect . It may help
Treat your afflicted fish in QT with copper. Use the Hannah copper checker to test copper levels. You may use hyposalinity in conjunction. Leave your tank without any fish for 76 days.
Any meds saying it’s reef safe for ich treatment is just snake oil