But, if you open a soda bottle and then screw the cap back on, you will lose carbonation in the liquid.
A certain amount of gas will escape the liquid and build up pressure in the head space. Eventually, the pressure in the head-space will prevent additional gas from escaping and things will level out, but it is possible that enough gas will have escaped to make the beer taste kind of flat.
The best thing to do if you plan on trying this is to make sure there is as little head space in the new bottle as possible. Also, chill everything before transferring the beer (chill the bottled beer, and chill the new bottles). That will help avoid foaming/loss of CO2 when you transfer.