Mug cakes usually cook in the microwave, making it more difficult for the batter to cook evenly and get a melty center every time. An oven is a better choice for this particular cake. If you have an oven-safe mug, it's fine to use that instead of a ramekin, but you'll still want to bake it in the oven.