Yup. You want to do this.

YouTube - How to stop cats pissing on your car, The best cat video ever! - Craig Turner