Could black spots on my foot be from plantar warts?

Could be. Have it examined by a podiatrist or dermatologist.
They can be.. Best to have it checked out. See a podiatrist or dermatologist.