If I apply to the Ph.D. program and do not get accepted, will I be considered for the M.S. program?

Yes, applications are considered for both programs.