Certified GKH Gardening Expert
It looks like Rosemary and if it is you can use it in cooking. It has a piney fragrance. I would be absolutely certain it IS Rosemary before I used it as a seasoning though. Look at some at the grocery store or at a nursery and smell it and make sure it looks and smells like yours. Plus, was it just growing in your yard or did someone give it to you? Be absolutely certain what you have and that it is edible. I can't be certain just looking at a photo.