If you sold the shares which are in your demat account then yes at whatever rate you have sold will be credited to your account.
If you sold the shares which are in your demat account then yes at whatever rate you have sold will be credited to your account.