Yes. Justin Bieber is credited as a songwriter on the vast majority of his songs—over 150 credits across his discography. He is actively involved in writing melodies, lyrics, and concepts.
Bieber typically co-writes with a core team of producers and songwriters:
On My World (2009) and My World 2.0 (2010), Bieber had fewer writing credits (e.g., "Down to Earth," "Bigger"). His involvement increased significantly from Believe (2012) onward.
While he rarely writes entirely alone, Bieber's melodic instinct, vocal phrasing, and personal storytelling are central to his catalog. He has stated that writing is therapeutic and essential to his artistry.