Yes on Granite. No on Quartz. Even though quartz is rated for such temperatures, at the end of the day quartz slabs are comprised of quartzite crystals and resin. Resin is not heat resistant, so it would be better to use a coaster on your beautiful new quartz countertops.