As long as you're cleaning in tank water from the same tank then there's no issue. Your thinking is right though, if you're running a dual filter setup and ever have to do anything that will negatively impact the bacteria in one filter, it's always better to leave as long a gap as possible before doing the other filter.