Most ribbon cables are designed to fold, however don't push pressure on/pinch the fold itself, fasten it a bit below the fold if retaining it against something and don't tuck it under something which will put pressure on the folded bit as that will have an impact on lifespan. (If it is the flat conductor type you definitely don't want to pinch the fold).