US has never demonstrated such complicated autonomous unmanned mission. Only China is the one who do so with lunar sample. Collect sample is nothing if u don't have the mean to send it back. US publicity of collecting mars sample are nothing.It will be the 2030s at the earliest before China can carry out a Mars sample return.
NASA already has Perseverance on Mars to collect samples. 2026 is the planned launch for sample return with return to Earth in 2031. Mars sample return is a lot harder than the Moon.
Did China collect moon sample first on a mission before send another mission to retrieve the sample? No.. we do it in one shot.