It depends.
If the pH, temperature etc... is exactly the same, then it's safe.
Also, as long as there is sufficient good bacteria in the filter, and it's not harmed when doing water changes, then it's safe.
Having said that, I wouldn't do a 100% water change.
I would do several 50% water changes over the course of a week.