I’ve known quite a few people that were paid under the market value because they liked their job and tasks. I’ve took a salary hit once at the start of my career because I hated my job too much and wanted the job I was interviewing for. Didn’t regret it too. Though two years after I accepted a job at FAANG.