I have pledged stocks and used the margin to trade F&O. One of the pledged stocks has declared a dividend. Where will this dividend be credited?

You may do those in the console > Holdings > Select Stock > Pledge
image

Yes