I find it's easier to just go get them taken somewhere, but yes, you can do them yourself, but understand there are requirements for how much of your head has to fill the picture, etc for a passport... those same requirements apply to this photo.
Moosie