The answer is yes but there are a couple gotchas.
1. Most software programs have a built-in or add-on visualizer to help with doing exactly that.
2. Freestyler is a free lighting control program that should do what you need, but you need to be prepared for a steep learning curve.
3 DMX programming relies on accurate fuxture profile data that indicates the channel and value range for each feature inside a fixture. There is no standard for this it varies a lot so any programming you create will be specific to exact fixture brands and models.