I get where you're coming from but there is no "pagan religion", it's an umbrella term for a ton of different religions with vastly different beliefs and practices. And Christmas is not based on any of them, it is based on Christian mythology and the physical reality of the Earth and it's seasons, which allll religions share
What we now know as Christmas pre-dates Christianity and was not celebrated by early Christians. It was adopted by Christians who wanted to combine the celebration of the birth of Christ with the Pagan tradition of celebrating the birth of their Sun God and the winter solstice. Before this, early Christians did not celebrate the birth of Christ. Many of the traditional practices of Christmas were based heavily on Pagan traditions, such as decorating with ivy and holly, bringing a tree inside the house, gift-giving, and decorating with lights. It should also be noted that the early pagan traditions involved sacrifice but those customs were abolished after Roman emperor Constantine converted to Christianity and merged the two religions together.
So, yes, Christmas originated from early “Pagan” religions.