Interesting because no you cannot castle through a pinned piece but this is one of a small number of rule changes that I have always thought would be good.
It would add a nice element to the game if you could immobilise a piece that was preventing you from castling by pinning it.
No