The short answer is yes. All a docker container does is run commands (there is some isolation that makes it a container vs just another process on your computer). I would recommend building a very simple docker container yourself so you understand the basics of how they work, then you will be able to answer this question.
However, this has nothing to do with unRAID beyond unRAID having the capability to run docker containers. I would recommend asking on a Stack Exchange website instead (such as Stack Overflow).