Brown spotting at 5 weeks pregnant

Has anyone experienced brown spotting along with mild cramps at 5 weeks pregnant? If so was the outcome successful?