Can I stay on the pill through perimenopause to control my mood?

Yes for a while. It is considered safe and appropriate for a women to use birth control pills until the age of 55 or 56, except for smokers - tobacco smokers should not take the birth control pill after the age of 35 due to the increased risk for blood clots and strokes.