The pill

Recently I've been having really heavy periods (Tmi) but I heard that when you take the pill it reduces the menstrual flow is this true?