Sure, you could either calculate how much priming sugar for lets say 1G of beer (simple math) vs 5G. I would rack 1G to bottling bucket, then the rest to the keg.
Or you could transfer all to a keg, carb it, then fill bottles. You can use a counter-pressure filler, which is a DIY on here, or...