This is the standard way of saying sorry in Mandarin, but you should really learn the phrase 不好意思 (bù hǎo yìsi) which is a very high frequency phrase for expressing your apologies.
Check out these groups of Chinese phrases too. You might find more useful Mandarin phrases. The current Chinese phrase "Sorry" appears in these as well