That's not what the Bible says tho.
Matthew 1:16 and Luke 3:23 is quite obviously rewritten to fit the "hurr durr god the son" narrative (does it hold any value to cite genealogy of Joseph at this point? why not cite genealogy of Mary instead? exactly!), which comes from a misreading of how Jesus refers to God as "father" since God is OUR (everyone's) father (and note that Jesus himself confirms this, e.g. Matthew 23:9). Likewise, 1 Clement (not part of canon today, but included in early Bibles such as Codex Alexandrinus, and listed in Canones apostolorum!) confirms this in 19:2.
Trinitarianism in general and worship of Jesus is a Pauline invention (well, Paul was truly rather a binitarian), that short ugly balding incel, this is how he had to cope!