Every line of code you make is a line of code you must maintain.
It's like anything else in life: a house, a car etc.
There's no debt about it though. I hate the term 'tech debt'. It's very vague and has these negative connotations that are ambiguous.