Depending what the 'moulding' (trim or actually part of the door) is, then either the trim can be replaced (not expensive) or if it is the actual door frame then pvc fillers are available but I would recommend using a professional, otherwise just leave it if not obtrusive or detrimental.
Mike at Agree-a-price frames, September 2010