I've a quick question for y'all

So I've been learning PHP for the past couple months now, and recently started OOP and using MVC. I'm also learning the CodeIgniter framework.

My question is: should I "master" using php procedural code, before I continue on and learning a framework? Because if I learn a framework, that knowledge will be useless if I ever decide not to use that framework anymore.

Happy coding,