Depending on that country’s laws, you could be arrested and face prosecution. In the UK, if you are found guilty of possession of a class A drug such as cocaine, you face up to seven years in prison or an unlimited fine (or both).