If you are interested in the subject, then I say go for it. I did Chemistry at University and now work for a global technology company that employs thousands of scientists both male and female.
With regards to the gender gap - yes that is something we should be concerned about but it is not a reason not to enter a profession.
There is much debate on the reasons for the gender gap in science and maths fields. Some studies indicate that girls are just as capable as boys at school and any differences in performance in these subjects may be linked to interest, expectations, encouragement and confidence rather than ability. Fewer girls studying STEM subjects during and after school impacts the number going on to STEM careers when other factors such as interest, flexibility, workplace environment and gender bias play a role in widening the gap.
I don't have experience in academia specifically but I am inspired by people like Sheryl Sandberg (Facebook), Dr. Fabiola Gianotti (CERN), Dr Seirian Sumner (Soapbox Science founder), Prof. Dame Carol Robinson (University of Oxford), Claire Vyvyan (Dell), Emma Walmsley (GSK) - they are part of the shift to a more diverse, balanced industry and the challenge we have now is to replicate this across all areas and levels of STEM. I have posted some articles and link below that might help you explore this topic further.
The other advice that I found useful is that everyone has been the minority in a group at some point and the best way to deal with it is to find a way to turn it to your advantage. For example, women tend to be more empathizing, this theory is controversial (http://www.bbc.co.uk/guides/zxhvmnb) but for the purposes of discussion we will assume it is correct, so if you are working with a group of men you may be able to offer a different perspective on a customer problem or employee problem - it is this diversity of thought that can make for richer insight and better decisions.
For me personally, I have found that being able to offer the softer skills that are sometimes associated with female personas (empathy, communication, caring, teamworking etc), as well as the skills that come from a technical degree (logical thinking, problem-solving, analytical skills) means that I am more versatile and able to take on a wider range of responsibilities which is a great asset to any career.
I wish you the best of luck - whatever you decide to do.