No, only in the first case. The second case will cause undefined behavior when you'll try to deference the pointer. Use the first case.
Some explanation:
int int_var = 5;
int *int_ptr = &int_var; // here int_ptr will hold the address of var
Whereas
int int_var = 5;
int *int_ptr = int_var; // here int_ptr will hold the address 5.