If your coursework has been submitted to the correct Moodle link, it will be marked.

If you have noticed the error before the deadline, you can remove and resubmit your work with the corrected name. If the deadline has passed, you will not be able to rename the work.
It will be possible to identify you and apply your mark correctly, even if you enter your ID incorrectly in the filename.