Indeed. The same way you would do with mobile generator and not t blow up everything. Following safe and best practices are still a requirementIf you go the back feeding generator route, make ABSOLUTELY sure you have a way to island the house. Usually something as simple as an interlock kit will do the trick.
Last thing you want is the grid coming back up while the generator is feeding the house.