Using dark rum instead of white rum
Yes, but you may get a slightly different flavor, and certainly a different color in the final dish.  

Many times, white rum is specified so as not to change the color, so you have to decide if this is an acceptable change for whatever you are making.