That is perfect.
You want a little extra space in your primary to reduce chances that the krauzen (foam produced by fermentation) bursts through your airlock. Once primary fermentation is done, transferring to a 5gal secondary is totally ok.
Something to think about, a lot of people around homebretalk don't secondary at all, and instead leave it in primary for +/- 3 weeks to minimise chances of infection (less moving/less equipment = less chance of infection)
On Deck Cider Test BatchesPrimary
6 Gallons California Coastal Red Wine
6 Gallons American Pale Ale (Terrapin Recreation Ale Clone)
1 Gallon Cider Experiment - Coffee and Cinnamon On Tap Bottled
....drank it all