How does PayPal work?

I'm trying to sell something and have the person pay me through PayPal. My concern is, can they make the payment, I get the money in my bank account, and then they cancel their payment after they get the item or something?

I'm so paranoid about getting scammed.