birth control

just wondering I’m very skinny so I don’t always get my period. it’s very irregular and sometimes I skip months at a time. I’ve had my period for about 4 years now so it should be regular but it’s not. Would birth control help keep it regular. or since the doctor thinks my body is trying not to get pregnant by not giving me my period cause i’m too skinny would it not work? Sorry I’m new to this whole thing.