Nope - not OK.
Your program is not supposed to be online. Study permits aren't granted for people who plan to take courses online. If you are taking some online classes CIC may start looking at you as a part time student and this may eventually cause problems for any work permits, including PGWP.
You should stay away from online courses if you want to avoid trouble.