I'dont understand well your question!
First of all if you have a Transit Visa which is usually valid for 72 hours depends in which country you are in(check it out first for canada how long it is valid)and then of course you can go outside the Airport with no problem
And a Transit visa doesent mean that you have to be enclosed like in jail at the Airport or transit area if there is one.
And if you have an entry visa go away as you wish as long as the visa is valid.
But check it out if you need a visa again for your return flight.