CPA license without working in audit firm

Hey All, I am working in one of the big 4 audit firm and currently I am studying for CPA. I have 4+ year experience in this audit firm and looking for a change. I am confused if i will be able to complete CPA if I join a non auditing firm. I am planning to get into internal audit function and wanted to check if I will be working under a CPA in a company and if I pass all the exams, will I be able to get the CPA license considering my past public accounting experience and the experience in internal audit?