Yes it is posible! If you have multiple tables to insert with same connection and your last insert was incorrect (like I trying insert unescaped quotes in text).
I think it returns last successful insert id which can by from different table. I just spent hour to find this. Peace