No. Tin Pan Alley (late 19th–mid-20th century NYC music publishing) produced secular popular songs/ballads—often sentimental or humorous. Gospel music is sacred, rooted in African-American church traditions, distinct from Tin Pan Alley’s commercial pop output.
They’re parallel streams in American music history, not branches of the same tree.