Yes, you can withdraw while having open trades. The withdrawal amount will be deducted from your equity.