Of course, if you spay or neuter one of them...you will be just fine and they can enjoy the company of one another.
Also, keep in mind....female dogs only go into heat about once every 3-4 months (sometimes longer). That is the only time they are primed for breeding. And a female dog's...