Jewish prostitutes definitely felt that they were part of the community. See R. Raphael Ankawa, Karnei Re’em (Jerusalem, 1910), no. 225, for a responsum sent to Brazil, regarding whether it was permissible for the synagogue to accept charity from the prostitutes, as well as a parochet they made for the synagogue. See also R. Moses Isserles, Shulhan Arukh, Orah Hayyim 153:21. R. Raphael Aaron ben Shimon, Nehar Mitzrayim (Alexandria, 1908), vol. 1, p. 12a, discusses a case where not only did the prostitute donate a parochet, but she also inscribed her name into it in golden letters. As R. Raphael notes, this is especially problematic since if allowed then people praying in synagogue would see her name staring down upon them and this would invariably lead to improper thoughts. (He adds that this particular prostitute had been with a lot of the young Jewish men.) Therefore, he ruled that the parochet could not be used and any gifts from prostitutes to the synagogue could not have their names on it. He also mentions a prostitute who donated a sefer Torah to the synagogue (!), and this was accepted on the condition that her name not appear on it..
Regarding Jewish prostitutes, see also the documents from the Russian archives recently published in ChaeRan Y. Freeze and Jay M. Harris, Everyday Jewish Life in Imperial Russia (Waltham, 2013), pp. 337ff., and see also Dan’s earlier post here. In 1611 the Prague Jewish community ordered the Jewish prostitutes to leave. See Simhah Assaf, Ha-Onshin Aharei Hatimat ha-Talmud (Jerusalem, 1922) p. 114. Any prostitute found plying her trade after this time would have a mark of shame branded onto her skin!
וזו שתזנה ח”ו מהיום והלאה יתוו עליה תו-קלון על ידי ברזל לוהט
See also Takanot Kandia, eds. Cassuto and Artom (Jerusalem, 1942), no. 31.
Pimps also felt that they were part of the community. See R. Joseph Hayyim, Rav Pealim, vol. 2, Orah Hayyim, no. 18, who rules that it is forbidden to give a pimp an aliyah, even if he only deals with non-Jewish prostitutes and non-Jewish clients. R. Hayyim Palache ruled that pimps must be expelled from the Jewish community. See Masa Hayyim, p. 14a. R. Solomon Kluger discusses Jewish pimps in Ha-Elef Lekha Shlomo, Yoreh Deah, no. 192, and see also R. Hayyim Palache, Hayyim be-Yad, no. 19, and R. Hayyim Hezekiah Medini, Sedei Hemed, Pe’at ha-Sadeh, ma’arekhet alef, no. 152 (s.v. apotropos le-arayot) .
Marc B. Shapiro, “The Pew Report and the Orthodox Community (and Other Assorted Comments), part 2”, The Seforim Blog (7 August 2014), n. 9 [http://seforim.blogspot.com/2014/08/the-pew-report-and-orthodox-community.html]