Rhel5.4/rhel6.5

I have a software package running on RHEL5.4. Can I make a docker image of my software which can run on user machine with RHEL6.5