Ferrets are very social animals by nature. They have a relatively low level of fear and will approach many situations with enthusiasm. Ferrets are probably more likely to put themselves in a dangerous situation with an aggressive dog than to be unfriendly towards another animal.
As with any small pet, you should always be present during encounters between your dog and ferret. Ferrets do have teeth and know how to use them, but they are no match for a dog. Serious injuries could occur accidentally if they are allowed to play too roughly.
If your dog and ferret do not get along, you always will need to keep them separated. Be sure to give each one independent playtime.