Yes, the bacteria will be fine, a lot of the inverts will die off, but not all. The rock will take a hit no doubt, but it should make a come back in time and especially if add more rock later.
The long term answer to avoid future problems is seeing if you can set up a QT.