Rc Receiver to a variable

Does pulsein work with PWM?

For what purpose?