How to create a 38 Khz pulse with arduino using timer or PWM?

Can't you just use the protocol that IR remotes use? There is already code to send and receive that.