The king can never move to an attacked square. So, if the move doesn't put the king on an attacked square, then yes.