If we are talking about the 'Automations' in the SmartThings app, then no. The automation will be fired when the garage door opens and then look at the conditions - the garage door is open and the house door is closed. So that will be false. Then it will fire again when the house door is opened and check the conditions again - the garage door may or may not be open, and the house door is open. That is actually more generally true, something fires an automation app up and it acts on what the current state of devices is. To get time sequencing as you require, you either need a bespoke app written to do the job, or you want something more powerful like webCoRE where you have finer control over what is going on.