What protocol are these devices? Some people use Wi-Fi for this because they are generally the most resilient (no mesh network so no worries about disrupting other devices, for example).
Zigbee is likely to be the next best; if it's a key repeater in your network, removing it could be a problem, but if it was fine before, it should be fine after. Zigbee devices find new routes all the time.
Z-Wave is likely to be the most problematic, less so with Z-Wave Plus than "classic" Z-Wave, but I'd consider it a risk I wouldn't take either way given how picky it can be.
For either mesh protocol, the best bet is to "politely" remove/exclude the device from your system. A tip you can use to make this easy on the hub side is to create a group in Groups and Scenes, put the temporary device in the group when it's on your hub and remove it when it's not, then use the group device in all of your automations rather than the "real" one directly (among other ways you might handle this).
That being said, not everyone has bad luck if they ignore all of this advice.
(But I'd just prefer to avoid what I can in the first place.)