No! YOu have to be friend'y with it and lvl it up during the day! YOu can raise a Pokemon's friendship by:
Walking 256 steps* +1
Massage (Veilstone City)DPPt +3
Haircut brothersHGSS* +1/+3/+5/+10 +1/+3/+5/+10 +1/+2/+4
Using vitamins +5 +3 +2
Level up +5/+6 +3/+4 +2/+3
Using EV Berries†+10 +5 +2
And lower your Pokemon's friendship by:Fainting -1
Using EnergyPowder -5 -5 -10
Using Heal Powder -5 -5 -10
Using Energy Root -10 -10 -15
Using Revival Herb -15 -15 -20
Trading Reset to base happiness.
*Bulbapedia