Using glm as a prior to inference a hidden variable

I suppose let’s say I had enough evidence with more samples available, would this method be valid then?