You can only claim maternity benefits if you have worked for your employer for at least 3 continuous months. Therefore, in this case, you are not eligible.
http://www.mom.gov.sg/faq/maternity-leave/can-an-employer-dismiss-a-pregnant-employee-from-her-job