Can you use same hoses both for pneumatic and hydraulic?

not quite, it depends on the pressure of system,

but hydraulic tends to be high or could be very high pressure,

and pneumatic is often lower pressure.

the low grade rated pressure hose/ pipe would fail and burst/ causing injury.