Cant pick up coin in Unity 2D

Hi. Im trying to pick up a coin with my Player, but i cant get it to work. ` using UnityEngine;
using System.Collections;

public class Coins : MonoBehaviour {

void OnTriggerEnter2D(Collider2D col){
			if (col.gameObject.tag == "Coin") {
					Destroy (col.gameObject);
			}
	}

}`

Make sure both objectd havr a RigidBody2D or else Unity won’t consider it when checking for collisions.