No. Linux does not write pages to swap if that same page exists in storage. ".text" pages, are the program and library code pages that are generally read-only and change on disk infrequently.
When the kernel is recouping dram, it examine LRU pages. If the page exists on disk it merely 'evicts' the page - it marks the page as not present in dram in the MMU, and then re-uses that dram page for other purposes. If the evicted page is later accessed, it will page-fault in from disk.