The PIC will work, but the linearity and accuracy will be less than if you use an op amp.