UC-secure commitment in the ROM

Looking at the question Is this a UC-secure commitment scheme in the ROM?, I was wondering, is the commitment scheme proposed in the answer (which uses $$H(M||r)$$ as commit) secure in the UC-model, assuming the existence of a random oracle? In practice, are there any problems in using such scheme within UC-secure protocols, replacing $$H$$ with a (good) hash-function?