5v input for IO is ok?

I need to connect sensor which output is dc 5v to jetson nano IO,
is it safe for jetson nano?

No, most IO pins are 1.8V or 3.3V, no 5V pins for sensor, you need to add level shift. Please refer to OEM DG for detail info.