The switch by itself can’t be programmed at all. You need the smartthings hub to be the brains. But assuming that’s what you meant…
Sure, we’ve discussed this kind of thing in the past. There are multiple ways to do it.
At this point the most direct way would be to use core, although set up for that can be complex. But there are plenty of community members to help you.
Alternatively, you can use virtual timers and a daisychain, we had somebody with a pool pump who did exactly this. I’d have to find the thread for you but if you have any programming background I would look at core first. It will give you more options in the long run.
OK, here are a couple of threads describing daisy-chains. And the how to article in the community – created wiki on creating a virtual timer. But I would still go with core first. The daisychain will work, but it’s much clunkier.
Checkout “Smart Home Ventilation” SmartApp under Lights & Switches in the Marketplace.
Sounds like it would work for your need.
I have a similar scenario where i have a plug-in AirWick air freshener that’s too strong if plugged in constantly so i had it set to turn on every 15 mins for every hour. Works great!