Yes, you can.
(P.S. The position is just an example.)
@1
"If playing While. Can you castle Queens side if a Black bishop is attacking the B1 square?"++ Yes
If you need help, please contact our Help and Support team.