Since interaction with opposite gender should be minimal, is having female friends sinful?

The person should not put him self in situations he can not manage.
Usually, getting into friendship with the opposite gender can not pass safely.