No.
You can't castle if:
- Your rook and/or king has previously moved.
- You are in check.
- You would be in check.
- The square where the rook would be after castling is attacked.