This has been a subject of debate in dentistry for many years. You should take antibiotics if you are suffering from a heart problem or if you have had a joint replacement done.
In every case, if you are undergoing any other problem, you should inform your dentist at the time of booking your appointment. Your dentist will let you know whether you need to take it or not.