No, the king never passes through or into an attacked square. The rook can pass through attacked squares.
ty