Of course. One can have unhealthy impulses even if one is confident they'll never be acted upon, for a number of reasons. I was actually more concerned about the impact such a toxic thought would have upon you than I was worried about the safety of your partner. I highly doubt you would have ever acted upon said intrusive thought; that doesn't mean there cannot be negative impacts of such involuntary ideas.