Founder and CTO of OmbuLabs, one of the top Ruby on Rails shops and the creators of skunk, next_rails, rails_upgrader, and more. Also, Ruby on Rails upgrade expert at FastRuby.io.
Yes, it is the right solution, but you should also consider Bit Bucket, as they offer unlimited private code repositories, which might be less expensive than GitHub.