No, "pwd" command is not part of the SFTP protocol. The SFTP protocol does not even have a concept of "current directory". Commands such as "ls", "dir", "get", "mget" or "mput" are not part of the SFTP protocol either.
Commands used by the "sftp" command line client do not represent actual SFTP protocol's command at all. The "sftp" command line tool was just designed to mimic the well-known "ftp" command line client, and its commands don't match SFTP protocol's requests.
When you call executeRemoteCommand(anything), you are not using the SFTP protocol at all. You are simply executing remote shell commands (such as "pwd") using the SSH server's remote execute functionality.
To get an idea of how SFTP protocol works, check out SFTP v3 specification at
https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-02 - you won't find "pwd", "cd", "get" there.