Not always. It'll tell you IP connectivity is available, but won't confirm SMB connectivity. Windows workgroup/domain networking is a bit decoupled from straight IP. It runs over IP, but can fail even when you have IP connectivity.
Chris
Sure but ping does a good job of telling you whether you need to oh, for example,
Replace the network cable. Plug the network cable into a different port. Replace the hub/switch.