Can I pledge shares that I purchased the previous day?

Yes, you can pledge the shares once they are credited to your Demat account.

Shares bought today will be credited to your Demat account after settlement (T+1 day).

After the settlement is complete and shares reflect in your Demat holdings, you can pledge them for margin or funding purposes.