Can we back up iPhone 15 into iCloud by charging over night ?

Can we charge iPhone 15 overnight to back up our data in iCloud

Yes bro. its not a problem. you can do it occassionally. iPhone auto cut off and manages input power speed at software and hardware level. so dont worry.