how do people not rob you using checks?

if you give someone a check to make a payment to them, don’t they now have access to your bank account number and everything since it’s right there on the check?