No, you cannot deduct miles from home to 1st job site and from last job site back home. That is considered commuting and is not tax deductible.
However, you can deduct miles driven from one job site to another. See attached picture for details, please.