Yes, you can use a glass lid instead of foil for many cooking tasks, provided that the glass lid is oven-safe and suitable for the specific dish you're preparing.