No, it's best not to try and write under pressure while listening to this type of music. Ambient melodies are meant for relaxation and contemplation, so if you're trying to focus on a task that doesn't allow for either of those things then the music will only be counterproductive. Save this type of music for when you have time set aside specifically for creative endeavors or winding down after a long day.