Most hydraulic shocks are not designed to be run inverted, and the ride/performance will suffer dramatically because the valving will not function as designed.
Some gas shocks can be run inverted, but you'll want to verify their orientation with the particular manufacturer.