As far as I know there's nothing that stops you from getting attacked while you're attacking someone else.