Self employed

So if I'm understanding this article correctly, say most my work is outside of my home, but I have a 'home office' space in my home with a computer and other stuff I use only for work related stuff like invoicing, bookkeeping, etc, then that would qualify as a principal place of business, and all the miles I drove for work would be tax deductible?