If a female hasn't came on her period in 2 months and she is spotting could it be that she is pregnant?

Yes, she could be pregnant. Spotting can be very normal during pregnancy. And unless she doesn't normally have consistent cycles, then it's very likely she is pregnant.