As a PR, when can you start contributing to TFSA?

We got the PR (1st entry) around Feb’18. However, we were still in the US and moved completely end of Oct’18. Can we contribute to TFSA as we have been outside Canada for more than 6 months this year. Is there any reliable source to confirm this?