Yes you feed it as you would any other sub panel except that you need to drive ground rods at the building and connect the grounding electrode conductor to the ground bar. The neutral would be isolated from the grounds. You also need a main breaker or meet the 6 throw rule