Yes, the JS API is backward compatible. The only caveat is that you cannot use JS API features that aren't supported by the release of ArcGIS Server you're using. For instance, you would be able to do any editing against your services. If you're just displaying and querying, you should be good to go.