Yes, the dentist would be the first person who can diagnose the reason for your bad breath. The cause may be oral ( in most cases). To rule out alternative causes of bad breath, your dentist can guide you best in these things.