Periods and masturbation?

Do you ever masturbate and then suddenly have cramps? I'm not sure if this is something that will onset a period or whether I am just particularly horny and would get my period with or without the masturbation.