Do plants continue to use photosynthesis if uprooted, provided they are still green?

I brought a small pine tree inside that someone had left by the road, and my bf is laughing saying I rescued a dead plant. I realize its condition won't improve, but are the green needles still technically alive/performing photosynthesis (at least for the time being)?

Tried looking this up but left more confused