yes. you have to give them the number on your card so that they
can charge your account. its still better to pay by cash because
the person could write your number down and use it to buy
stuff.
You can do that by making sure your bills are paid on time and
in full. You can also get a prepaid credit card in order to
establish some credit without sinking yourself too deeply.