Yes, it is completely legal. However, you should not use trademarked brand words and not mislead potential consumers.