You can cook anything on a fire pit that you can cook on your barbecue, grill, or oven.
To cook food, all you need is heat, and a fire pit has lots of that.
You need a few things like a grate, skewer, aluminum foil, or even a dutch oven to cook on a fire pit.