If you can read it, you should be able to write it.
There are also programs you can use to do that for you. Logic Pro scores everything out, some of it isn't as precise as I'd like, but I don't really use it I guess. I can sight read but I'm slow at it and I prefer to memorize or play by ear.