If you are in a survival situation in the woods and really hungry, and you are unsure about which plants are edible, can you eat pine needles?
Pine needles have virtually no caloric value.
I would not recommend pine needles as an energy source, although they have plenty of vitamin C and make delicious tea. This is good in winter to avoid getting scurvy in a long-term survival situation.
As already mentioned, Yew needles are toxic to the human body. There are several genera of yew. Generally they grow at higher elevations and in man-made parks.
If anything looks like these yew needles, leave them be and don't eat them: