Yes, the TAS5xxx can produce frequencies outside of the audio band. Ensure that your sample rate and output filter is consistant with the frequency that you need to reproduce. In the case of 40KHz the filter values contained in the datasheet should be good starting values for your application (depending on the impedance of your transducer).