Can I use the pointer allocated by cuda 6.0 in cuda8.0

Hi ,
I have two dlls, one is compiled by cuda 6.0. I allocated a pointer by cudaMalloc and the pointer will be used by another dll which is compiled by cuda 8.0. Is it OK? Thank u.