No, you cannot apply for both programs. You must chose one or the other.
You also cannot request to be considered for the SM program should you not be accepted to the PhD program.