Option writing by pledging of shares

No, the option credit can be used to fund the buy option trade if buy premium is less than sell premium.