Not for fireplace but I had a LP pool heater. The thermocouple would need to put enough MV to open the pilot light gas tube/valve and then main gas valve. I had to replace that a couple times.
My wife's cousin has a NG boiler same scenario. The thermocouple went bad a couple times not keeping pilot lit. The last time I did it the plumbing supply house didn't want to sell me it so "un-qualified/un-licensed" user didn't play with gas and go boom. I had already traced through and metered all the safety's and all were good. Only issues was Pilot would not stay lit. 2 choices at that point, thermocouple or main gas valve which is a PITA to change and expensive. Home Depot did have the thermocouple, I bought 3. The other 2 on her boiler room wall just in case for future. Not expensive as stated.
Maybe some YT videos now on how to change that on your brand easiest?