You can, but you shouldn't. Driving with a hole in your tire is dangerous because it could cause a blowout at any time. If you have a nail in your tire, driving with it still in will ruin the tire beyond a simple tire repair. Instead, you'll have to spend more money to have the tire replaced completely.