Yes, a person can open any type of registered account with an online broker, provided that said broker allows opening the desired type of account. It is therefore quite possible to invest in the stock market through an RRSP, a TFSA or even an RESP. You can check what type of registered accounts are available by selecting the desired account type from the left sidebar of Hardbacon's brokerage comparison tool.