I think that's ok.  The module names would need to be the same (between the d and di) for linking anyway.