Is University of phoenix a nationally accredited university?

No It is regionally accredited, which a higher accreditation than national.