Sex question

This might sound so stupid but if you're on the pill and you have sex without a condom does that count as unprotected sex??