Yeah, of course, you are completely allowed to move from WordPress.com to a self-hosted installation.