Will anything bad happen? Or is it safe.
It is physically impossible to wire anything in series and parallel at the same time. It is possible to arrange a set of connectors which will allow one to choose whether the components are in series or parallel but this is a different thing.
Your homework is to draw the circuit diagram for a pair of components that are in series, and then add the wires necessary to put them in parallel at the same time. Then, reduce the resulting diagram and try writing Ohm's law for it.