Yes, but only if all of the following are true:
- you had income from business or property (includes income from securities),
- you didn't already use the cost to reduce your business or property income
- keeping accounting records was a usual part of your business or property operations