Yes, if you mean your queries are timing out, then use the Timeout property of the command object. If you set this to 0 (the default in Query Analyzer), there will be no timeout. The usual default for ADO is 30 seconds.
If you mean the connection itself is timing out, that's the Timeout property of the connection object. The default is 60 seconds.