Yes, they are compatible. The only difference is the clocking. A Dana 300 bolted to a tranny that once housed a NP231 will be rotated slightly differently than if it were bolted to a tranny for a 300. Does that make sense?

In other words, it may hang lower or be higher than it would normally be.