Yes, online doctors can prescribe some medications, which usually include antibiotics, antidepressants, anti-anxiety meds, acne treatments, and more. However, usually, your online doctor cannot prescribe controlled substances, which are drugs like Adderall, narcotics, and certain psychiatric medications.
Many telemedicine medical professionals offer refunds if they feel they cannot help you with the care you need during an online visit. You are then free to see a doctor in person who can prescribe the most suitable medication.