Properly done, I don't see a problem.

My truck once belonged to the PoCo. Inside is a locking bin, with mounting pads for a generator. In the outside wall of the truck are installed a pair of vents. The generator was connected to a pair of receptacles on the body of the truck.

Now, keep in mind that the rear service body of my truck is in no way connected to the cab of the truck.

Of course, this set-up is in a whole different class than simply setting the genny on the floor of a van, then stacking boxes of stuff all over and around it!