It depends on the situation. In that situation, i would definitely say no, since black can use the following line so that it will almost be as if he castled, while still developing his pieces:
1.... Kxf7
2.... Nf6
3.... Re8
4.... Kg8
If, on the other hand, you have an attack going, and wish to keep the king in the center, then fire away.
I have always wondered...how much is it worth to prevent the opposing player from castling? is it worth a knight? a bishop? two pawns? I have often sacrificed a knight to prevent an opponent from castling, but I never quite figured out if it was worth it. (I think I have won most of those games, although they were mostly against weaker players.) in the below diagram would you sacrifice your knight to keep your opponent from castling?
there may be better moves I just threw this together really fast.