My understanding of the castling rule says yes that is legal.
A Question on Castling

Even as a relatively experienced chess player of more than 10 years, I still have a question on a simple aspect of the game in castling...
In the following diagram, can White castle QUEENSIDE due to the prescence of Black's Bishop? The King will not be passing over a threatened square or landing on such a square and is neither in check, but can White castle as the rook will pass over the threatened square? Anyone that knows please answer!
See here http://www.chess.com/learn-how-to-play-chess.html
"... On a player’s turn he may move his king two squares over to one side and then move the rook from that side’s corner to right next to the king on the opposite side. (See the example below.) In order to castle, however, it must meet the following conditions:
it must be that king’s very first move
it must be that rook’s very first move
there cannot be any pieces between the king and rook to move
the king may not be in check or pass through check"
Even as a relatively experienced chess player of more than 10 years, I still have a question on a simple aspect of the game in castling...
In the following diagram, can White castle QUEENSIDE due to the prescence of Black's Bishop? The King will not be passing over a threatened square or landing on such a square and is neither in check, but can White castle as the rook will pass over the threatened square? Anyone that knows please answer!