Hello
Sure you can make a connection in a box above the celling just be sure to cover it
Electrician
former journeyman electrician /maintenance mechanic for 30 years