I have removed the malicious code and updated the wordpress core for you, of course the website will work normally when the malicious code is removed.
However, I can’t guarantee this malicious code will be recorded again because your website shares hosting with many other websites and it can be spread from another website containing malicious code.