Not allowed according to FIDE laws of chess, basic rules of the game (see www.FIDE.com),
Article 3 The moves of the Pieces, 3.8 King moves,
ii.castling, (2) castling is prevented temporarily
b) if there is any piece between the king and the rook with which castling is to be effected.