Yes, you can. Cap Staplers and Nailers are a good option for roofing underlayment, roofing felt or tar paper, whatever you'd like to call the project name. Cap staples can fight the high wind, rainfall, extreme UV exposure, and retain the watertight integrity of underlayment.