You can compose and create music without knowing the names of the lines and spaces on the staff, but sometimes it is easier when you have a better understanding of what you are doing. Below, you will find a link to MusicTheory.net at which you can practice name the lines and spaces of the treble clef (used by many melodic instruments". Enjoy!
MusicTheory.net practice, treble clef
MusicTheory.net practice, treble clef
The video below is a five minute tutorial on the use of MusicTheory.net. It presents an effective explanation of the site, if you want to dig deeper.