You can, but in this case they will only keep for a week in the fridge. Herbs are not considered safe stored in oil for long periods due to a botulism risk. Because of this it's generally best to add any herb or flavourings when the tomatoes are served.