No, you cannot apply for a Swedish passport online. You have to book an appointment and come to the Embassy in person.
Find more information about passport appointments here.