Calculate it. You know the dimensions. It will act as a column, so check compression and buckling. Compare those to allowable stress values in AISC or other applicable codes.
In general, a short, 2" dia. sched. 40 pipe will have a relatively high capacity. Also check to make sure the bearing plates top and bottom do not overstress the materials they contact....and yes, you must have bearing plates.