They should be fine so long as your goldfish won't be mistaken as another male betta by your betta. Otherwise goldfish and bettas make excellent tankmates.