Pill question

Would the pill give u a negative result in a pregnancy test if u are pregnant ??