Yes, you can use a muffin tin instead of a bun tin. The main difference is that muffin tin cups are slightly larger than bun tin holes, so you may need to adjust the quantity of filling and baking time accordingly.