Tests???

Someone told me that if you take an ovulation test few days before period it tell you if your pregnant or not. Is this true?