Using two outputs

If the output should be digital will analogwrite work? Can you link me to where does it say it has max frequency of 4 MHz? I couldn’t find that number when I looked