I agree that it is generally not a good idea. While you can do it, writing prescriptions for yourself or your family are frowned upon. If you do it too much, your state medical board may start investigating your prescription practices. Most states don't regularly audit non-narcotic prescriptions, but sometimes unusual activities can get flagged for audit.
I never wrote a prescription for myself or a family member until a couple of months ago. 😳 I went to my pharmacy to pick up a refill of a prescription of naproxen that my doctor had written for me, only to find out that I was out of refills. I didn't want to bug my doctor about it as well as make a second trip to the pharmacy after the refill got called in, so I asked the pharmacist if I could just give him the order for the refill. 😳 He was totally fine with it (probably because it was only naproxen), and my insurance paid for it, but I still felt really weird about doing that. I felt so weird, in fact, that I will probably never do this kind of thing again. I would also never write for antibiotics for any of my family members. If I think they're sick enough to need antibiotics, then they should probably be checked out by their doctor.