Yes. When an insert succeeds, the number of rows affected is 1. When it doesn't that number is 0.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.