Using two outputs

wouldn't analogWrite be too slow to operate at .25 us? or 40 kHz