If you mean that you sold stocks or bonds and then put the proceeds into a TFSA, then yes, there might be capital gains taxes due to the sale. If you just closed a regular bank account and transferred the money to a TFSA, then there’s no tax on the transfer.