Selling(in futures) and Buying different stocks in the same industry

Is it Good Idea to go short in One stock and going long in other stock belonging to same industry based on risk perception of those stocks.

Yes its called pairs trading