You can certainly do that. Make sure you bring additional funds to cover your expenses since you won't be able to start working until classes officially start in September. CBSA officers may ask you to demonstrate that you have the extra funds to support yourself without working illegally.