That strip is a weatherstrip that keeps dust and moisture out.
I would not use caulking. I would clean the W/S and the ceiling with a good degreaser, rinse well, let it dry. Then wipe it down with rubbing alcohol (75+%). Let it dry, then use a good double sided tape to secure the W/S.
https://www.amazon.com/3M-2-5-5952-P...552002&sr=8-14