Absolutely! I created a music lately and my brother, which is a musician (trumpet), had to play it for me.
I barely know the music notes, that is how I have been able to put my music on a sheet. However I wasn't capable to play it.
Some years ago, I written a song, but without the music this time.
Music normally is not my job, since I'm only a painter / illustrator.