Yes, the mindfulness you practice with mindfulness is an important part of cognitive behavioral therapy. In order to change negative beliefs and unhelpful thoughts, the first step is to be able to consciously notice them. Whereas mindfulness assumes noticing what is, in cognitive behavioral therapy we focus on changing our thinking and doing.