Yes this is fine for such a short length as long as your existing wall receptacle to C13 cord is short enough/has thick enough wire gauge to support it’s length.
With thicker wiring the ampacity of most connectors actually increases due to them running cooler and the wires acting as a better heatsink.
slightly OT brainfart "AI" helped me with
apparently it’s early enough in the morning I couldn’t remember what the SI system was called so I tried to explain to Google’s “AI” what I was looking for and it actually understood: