Yes, ammonia is a commonly used cleaning solution for oven racks. However, it's important to follow the manufacturer's instructions and take safety precautions when using this product, such as using gloves and ventilation.