Abstinence is defined as abstaining (refraining) from have sex at all. This is the safest form of sexual protection (100% effective) because you aren't having sex.
Therefore, if you are practicing abstinence, then you are <em>not</em> having sex and therefore will help you avoid unplanned pregnancy and sexually transmitted diseases and infections (STDs/STIs).