Is the next sentence syntactically and semantically acceptable?

to hurt oneself is stupid.
acceptable