Going to gym and losing period?

I wanted to start to work out but I read somewhere that I can lose my period if I work out. Im scared that it will mess up my period now :/ Any advice ?