Yes, it can.

In fact, many companies now are refusing to hire anyone who smokes. The reasons vary but, regardless, it is legal to not hire smokers.