No; bars (all components) should stay tight when riding, this should have been sorted in the pre-delivery inspection (assuming you got it from a bike shop) as it wasn't if not, take it back and get them to fix it.
If you got i from a direct supplier, would still be worth taking it to a real bikeshop, to find the cause of the loosening.