Sex and masturbating?

Is masturbating bad for fertility? And if you masturbate after sex does it lower your chance of conceiving?