You can certainly do both. I find that frying them in a frying pan makes it easier for the crab cakes to fall apart when flipping them. I simply brush butter or olive oil on top of the crab cakes and bake them in the oven. They are perfect that way and don't fall apart!