In this paper, we propose a joint channel allocation and power control algorithm by using cognitive radio non-orthogonal multiple access (CR-NOMA) for femtocell users (FUs). The aim is to maximize the sum rate of the FUs for guaranteed quality of service (QoS). With an aim to have guaranteed QoS for FUs, we use CR-NOMA at the femto base station (FBS). Then, an algorithm for pairing among strong and weak users is proposed by using the channel gain difference. Using pairing, the NOMA interference between them reduces which results in better channel utilization. Moreover, we differentiate the even/odd number of FUs in a femtocell to provide the QoS for weak users also. For this purpose, OMA is used to get a predefined data rate using a greedy channel allocation algorithm. The power of each FBS is controlled by using the successive convex approximation for low complexity (SCALE) protocol with Karush-Kuhn-Tucker (KKT) conditions. Numerical results demonstrate that the proposed scheme enhances the sum rate and provides guaranteed QoS for CR-NOMA based femtocell users in comparison to the existing conventional OMA based-femtocell techniques.