Is it safe to plug something in this way?

Probably a dumb question, but I'm plugging in an air freshener and it hangs off unless it's plugged this way. Is it safe?

Probably a dumb question, but I'm plugging in an air freshener and it hangs off unless it's plugged this way. Is it safe?