if you understand for sure that dentistry is not yours at all, then it is worthwhile if you yourself do not understand whether it is yours or not, you can try to take an academic leave and think carefully about what you want and it also depends on whether what course are you on. you can quit right away, or you can finish your studies and get a second higher education. at least you will have the opportunity, for example, to do business (again, if you like ) and not treat people. unanimous opinion of both university professors and dentist friends, and doctors of other specialties, that medicine is an area where you either love your job, or trouble (of course, this can be said about any field of activity) and so. people who don't like their job are almost always immediately visible. what area do not take. just remember examples from everyday life. do you want to be such a person? and at the same time there are professionals in their field who can not help but admire so it is never too late to change direction, and I wish you to do what you love :)
In your choice, I ask you to take one fact that everyone who is not lazy is eager for programming now. And if you want to get yourself a salary, you will need to plow very seriously.
First, decide if you need it. Perhaps you will not like another sphere and will regret it. You can become a developer without education - you can read it.
Yes, it's worth it, drop it. If the answer to your question is yes. And if you look from the side of the answer, then it's worth quitting. Well, if you think about it, you can go to a technical university. That's all.